package com.szlanyou.thirdsdk.retrofit.util;

import java.util.concurrent.TimeUnit;

/**
 * @author 陈章
 * create at 2021/7/9 11:31
 * desc:时间统计工具
 */
public class TimeCountHelper {

    private  long startT1;

    public  void markStartCount(){
        startT1 = System.nanoTime();
    }

    public  long getPassedTimeMillis(){
        long t2 = System.nanoTime();
        return TimeUnit.NANOSECONDS.toMillis(t2 - startT1);
    }
}
